package com.lanou3g.code0418.dirty;

/**
 * If there are no bugs, it was created by Chen FengYao on 2018/4/18;
 * Otherwise, I don't know who created it either
 */

public class Main {
    public static void main(String[] args) {
        Person person = new Person("张三", 18);

        Utils utils = new Utils();

        new Thread(new Runnable() {
            @Override
            public void run() {
                utils.updatePerson(person, "李四", 19);
            }
        }).start();
        try {
            Thread.sleep(500);
        } catch (InterruptedException e) {
            e.printStackTrace();
        }
        new Thread(new Runnable() {
            @Override
            public void run() {
                utils.showPerson(person);
            }
        }).start();
    }
}
